#jieba 中文文本的处理 词频统计
import jieba

stop_words = ['的','我','爱']

#分词
def words_cut():
    text = '我爱北京的天安门'
    words = jieba.lcut(text)

    #去停用词
    #列表推导式的写法
    words = [word for word in words if word not in stop_words]

    print(words)



if __name__ == '__main__':
    words_cut()